package com.lastproject.web.bean;

import java.util.Calendar;
import java.util.Date;
import java.util.TimeZone;

import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

@ManagedBean
@SessionScoped
public class CalendarBean {

	private Date dateNow;
	private TimeZone timeZone = TimeZone.getDefault();
	private Date dateSurvey;

	@PostConstruct
	void init() {
		Calendar c = Calendar.getInstance();
		c.add(Calendar.DAY_OF_MONTH, 2);
		dateSurvey = c.getTime();
		dateNow = Calendar.getInstance().getTime();
	}

	public Date getDateNow() {
		return dateNow;
	}

	public void setDateNow(Date dateNow) {
		this.dateNow = dateNow;
	}

	public TimeZone getTimeZone() {
		return timeZone;
	}

	public void setTimeZone(TimeZone timeZone) {
		this.timeZone = timeZone;
	}

	public Date getDateSurvey() {
		return dateSurvey;
	}

	public void setDateSurvey(Date dateSurvey) {
		this.dateSurvey = dateSurvey;
	}
}